package ch06.home;

class Exercise6_24 {
	public static int abs(int value) {
		return value >= 0 ? value : -value;
	}

	public static void main(String[] args) {
		int value = 5;
		System.out.println(value + " abs: " + abs(value));
		value = -10;
		System.out.println(value + " abs: " + abs(value));
	}
}
/*
5 abs: 5
-10 abs: 10
*/
